package com.lei.chinese_herbal_medicine.Mapper;

import com.lei.chinese_herbal_medicine.Entity.Model;
import com.lei.chinese_herbal_medicine.Entity.ModelHerbLink;
import com.lei.chinese_herbal_medicine.Entity.PageData;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ModelMapper {
    int deleteByPrimaryKey(String id);

    int insert(Model record);

    int insertSelective(Model record);

    Model selectByPrimaryKey(String id);
    Integer selectCount();
    List<Model> selectByModel(@Param("model")Model model, @Param("pageData")PageData pageData);

    int updateByPrimaryKeySelective(Model record);

    int updateByPrimaryKeyWithBLOBs(Model record);

    int updateByPrimaryKey(Model record);

}
